<?php
namespace app\index\controller;

use think\Controller;
use app\index\model\MeModel;
use app\index\model\NewsModel;
use think\Model;
use think\Request;

class Test extends Controller

{
    public function index()
    {
        $me = new MeModel();
        $Me=($me->getMe());
        $data['Me']  =  $Me;

        $news = new NewsModel();
        $News=($news->getNews());
        $data['News']  =  $News;
        
        $new = new NewsModel();
        $New=($new->getNews());
        $data['New']  =  $New;
        
        
        $id = Request::instance()->get('id');
        //var_dump($id);
        //exit();
        $test = new NewsModel();

        $Test = NewsModel::get($id);
        
        $data['Test']  =  $Test;
        return $this->fetch('/test/index',$data);

    }
     
}
